#define _CRT_SECURE_NO_WARNINGS
#include "List.h"

int main()
{
	ListNode* List = LTInit();
	
	
	LTPushBack(List, 1);
	LTPushBack(List, 2);
	LTPushBack(List, 3);
	LTPushBack(List, 4);

	PrintList(List);

	LTPopBack(List);
	PrintList(List);
	LTPopBack(List);
	PrintList(List);
	 

	LTPushFront(List, 5);
	LTPushFront(List, 6);
	LTPushFront(List, 7);
	PrintList(List);

	 
	LTPopFront(List);
	LTPopFront(List);

	PrintList(List);
	//LTPopFront(List);

	ListNode* pos = LT_Find(List, 5);
	 

	LT_Insert(List,pos , 4);
	LT_Insert(List, LT_Find(List,4), 3);
	PrintList(List);

	LTErase(LT_Find(List, 4));
	PrintList(List);


	return 0;
}